<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>03_网格布局-显示划分-行与列</title>
        <style>
            .container {
                width: 400px;
                height: 400px;
                background-color: #ccc;


                /* 网格容器 */
                display: grid;

                /* 默认行填充 */
                grid-auto-flow: column;


                /* 设置了2行  每一个行的高度是100px */
                grid-template-rows: 100px 100px;
                grid-template-columns: 100px 100px 100px;


            }

            .item {
                font-size: 2rem;
                background-color: aqua;
            }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="item">1</div>
            <div class="item">2</div>
            <div class="item">3</div>
            <div class="item">4</div>
            <div class="item">5</div>
            <div class="item">6</div>
        </div>
    </body>
</html>